.overview-score .score-content {
  color: #2c3e50;
  border-radius: 12px;
  padding: 20px 25px;
  display: inline-block;
  min-width: 220px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.overview-score .score-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  opacity: 0.9;
  z-index: -1;
}

/* 高分 (80-100) - 绿色系，表示健康状态良好 */
.overview-score .score-content.high-score {
  background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
}

.overview-score .score-content.high-score::before {
  background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
}

/* 中等分数 (60-79) - 黄色系，表示需要注意 */
.overview-score .score-content.medium-score {
  background: linear-gradient(135deg, #ffecb3 0%, #ffe082 100%);
}

.overview-score .score-content.medium-score::before {
  background: linear-gradient(135deg, #ffecb3 0%, #ffe082 100%);
}

/* 低分 (0-59) - 红色系，表示需要关注 */
.overview-score .score-content.low-score {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  animation: pulse 2s infinite;
}

.overview-score .score-content.low-score::before {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

@keyframes pulse {
  0% {
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.6);
  }
  100% {
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.3);
  }
}

.overview-score .score-content .score-label {
  font-size: 15px;
  margin-bottom: 10px;
  opacity: 0.9;
  font-weight: 500;
}

.overview-score .score-content .score-value {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.overview-score .score-content .score-value .score-number {
  font-size: 36px;
  font-weight: 700;
  margin-right: 15px;
  background: rgba(255, 255, 255, 0.6);
  padding: 5px 15px;
  border-radius: 8px;
  color: #2c3e50;
}

.overview-score .score-content .score-value .score-change {
  font-size: 15px;
  display: flex;
  align-items: center;
  background: rgba(46, 204, 113, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  color: #27ae60;
}

.overview-score .score-content .score-value .score-change.success {
  background: rgba(46, 204, 113, 0.2);
  color: #27ae60;
}

.overview-score .score-content .score-value .score-change.down {
  background: rgba(231, 76, 60, 0.2);
  color: #c0392b;
}

.overview-score .score-content .score-value .score-change.up {
  background: rgba(46, 204, 113, 0.2);
  color: #27ae60;
}

.overview-score .score-content .score-value .score-change i {
  margin-right: 5px;
  font-weight: bold;
}

.overview-score .score-content .score-note {
  font-size: 13px;
  opacity: 0.9;
  font-style: italic;
  color: #34495e;
}

.score-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 6px 6px 0 0;
  position: relative;
  overflow: hidden;
}

.score-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.9;
  z-index: -1;
  border-radius: 6px 6px 0 0;
}

/* 高分 (80-100) - 绿色系 */
.score-section.high-score {
  background: linear-gradient(to right, #a8e6cf, #dcedc1);
}

.score-section.high-score::before {
  background: linear-gradient(to right, #a8e6cf, #dcedc1);
}

/* 中等分数 (60-79) - 黄色系 */
.score-section.medium-score {
  background: linear-gradient(to right, #ffecb3, #ffe082);
}

.score-section.medium-score::before {
  background: linear-gradient(to right, #ffecb3, #ffe082);
}

/* 低分 (0-59) - 红色系 */
.score-section.low-score {
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
}

.score-section.low-score::before {
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
}

.score-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-value {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
}

.score-change {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.5);
}

.score-change.up {
  color: #27ae60;
}

.score-change.down {
  color: #c0392b;
}

.score-change.stable {
  color: #ff9800;
}

.score-label {
  font-size: 12px;
  color: #2c3e50;
  font-weight: 500;
}

.health-report-container {
  background-color: #f5f7f9;
  padding: 12px;
  height: calc(100vh - 84px);
  overflow: auto;
  font-size: 13px;

  .app-container {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .1);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
  }
}

.header-section {
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #f8f9fa);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #ebeef5;
  display: flex;
  flex-wrap: wrap;
}

.header-section .el-col {
  display: flex;
  align-items: center;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
}

.time-filter {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.time-filter .filter-header {
  margin-bottom: 12px;
}

.time-filter .filter-header .filter-title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  margin: 0;
}

.time-filter .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.time-filter .filter-buttons .el-button {
  margin: 0;
  font-size: 12px;
  padding: 8px 15px;
  border-radius: 6px;
}

.time-filter .filter-buttons .custom-date-range {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  flex-wrap: wrap;
}

.time-filter .filter-buttons .custom-date-range .date-separator {
  font-size: 12px;
  color: #606266;
}

.time-filter .filter-buttons .custom-date-range .apply-button {
  padding: 8px 18px;
}

.time-filter .filter-buttons .custom-date-range .el-date-editor {
  width: 130px;
  font-size: 12px;
}

.time-filter .filter-buttons .custom-date-range .el-date-editor >>> .el-input__inner {
  height: 34px;
  font-size: 12px;
  padding: 0 26px;
  border-radius: 4px;
}

.overview-score {
  text-align: left;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  margin: 16px 0 8px 0;
  text-align: center;
  position: relative;
}

.timeline-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;

  .section-title {
    margin: 0;
  }
}

.section-description {
  color: #606266;
  margin-bottom: 16px;
  font-size: 12px;
  text-align: center;
}

.metrics-trend {
  margin-bottom: 25px;

  .health-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding-right: 6px;
    margin-top: 12px;

    .health-card {
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      padding: 16px;
      cursor: pointer;
      transition: all 0.3s ease;
      border: 1px solid #ebeef5;

      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      }

      .card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;

        .card-title {
          h3 {
            font-size: 16px;
            font-weight: 600;
            color: #303133;
            margin: 0 0 5px 0;
          }

          p {
            font-size: 12px;
            color: #909399;
            margin: 0;
          }
        }

        .card-icon {
          width: 42px;
          height: 42px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 18px;

          &.heart-rate {
            background-color: rgba(22, 93, 255, 0.1);
            color: #165dff;
          }

          &.blood-pressure {
            background-color: rgba(248, 114, 114, 0.1);
            color: #f87272;
          }

          &.blood-sugar {
            background-color: rgba(54, 211, 153, 0.1);
            color: #36d399;
          }

          &.oxygen-level {
            background-color: rgba(54, 211, 153, 0.1);
            color: #36d399;
          }

          &.sleep {
            background-color: rgba(251, 146, 60, 0.1);
            color: #fb923c;
          }

          &.steps {
            background-color: rgba(22, 93, 255, 0.1);
            color: #165dff;
          }

          &.ecg {
            background-color: rgba(231, 76, 60, 0.1);
            color: #e74c3c;
          }
        }
      }

      .card-body {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 15px;

        .metric-value {
          .value {
            font-size: 28px;
            font-weight: 700;
            color: #303133;
          }

          .unit {
            font-size: 12px;
            color: #909399;
            margin-left: 4px;
          }
        }

        .metric-status {
          font-size: 12px;
          display: flex;
          align-items: center;

          &.status-success {
            color: #67c23a;
          }

          &.status-warning {
            color: #e6a23c;
          }

          i {
            margin-right: 4px;
          }
        }
      }

      .chart-container {
        height: 100px;
        margin-bottom: 15px;
        position: relative;
        background-color: #fafafa;
        border-radius: 5px;

        .mini-chart {
          width: 100%;
          height: 100%;
          min-height: 100px;
        }
      }
    }
  }
}

.health-timeline {
  margin: 30px 0;

  .timeline-wrapper {
    overflow-x: hidden;
  }

  .timeline-container {
    position: relative;
    padding: 16px 0 30px 0;
    margin: 0 auto;

    .timeline-line {
      position: absolute;
      left: 50%;
      top: 0;
      bottom: 0;
      width: 2px;
      background: linear-gradient(to bottom, #1890ff, #40a9ff);
      transform: translateX(-50%);
      z-index: 0;
    }

    .timeline-item {
      position: relative;
      margin-bottom: -140px; /* 负边距使卡片重叠 */
      cursor: pointer;
      min-height: 120px;
      display: flex;
      align-items: center;
      z-index: 1;

      &:first-child {
        margin-top: 0;
      }

      &:last-child {
        margin-bottom: 0;
      }

      &:nth-child(odd) {
        /* 奇数项在左侧 */
        flex-direction: row;
        align-self: flex-start;
        width: 50%;
        padding-right: 40px;
        box-sizing: border-box;

        .timeline-content {
          text-align: right;
          padding-right: 30px;
          padding-left: 30px;

          .timeline-date {
            text-align: right;
          }
        }

        .timeline-dot {
          position: absolute;
          right: -9px;
          left: auto;
          top: 16px;
          width: 18px;
          height: 18px;
          border-radius: 50%;
          background-color: #1890ff;
          border: 3px solid #fff;
          box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
          z-index: 2;
          flex-shrink: 0;
          transition: all 0.3s ease;


          &:hover {
            transform: scale(1.2);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
          }
        }

        .timeline-connector {
          position: absolute;
          right: 10px;
          top: 24px;
          width: 31px;
          height: 2px;
          background: repeating-linear-gradient(
            to right,
            #1890ff,
            #1890ff 2px,
            transparent 2px,
            transparent 4px
          );
          z-index: 1;
        }
      }

      &:nth-child(even) {
        /* 偶数项在右侧 */
        flex-direction: row-reverse;
        align-self: flex-end;
        width: 50%;
        margin-left: auto;
        padding-left: 40px;
        box-sizing: border-box;

        .timeline-content {
          text-align: left;
          padding-left: 30px;
          padding-right: 30px;

          .timeline-date {
            text-align: left;
          }
        }

        .timeline-dot {
          position: absolute;
          left: -9px;
          right: auto;
          top: 16px;
          width: 18px;
          height: 18px;
          border-radius: 50%;
          background-color: #1890ff;
          border: 3px solid #fff;
          box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
          z-index: 2;
          flex-shrink: 0;
          transition: all 0.3s ease;



          &:hover {
            transform: scale(1.2);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
          }
        }

        .timeline-connector {
          position: absolute;
          left: 10px;
          top: 24px;
          width: 31px;
          height: 2px;
          background: repeating-linear-gradient(
            to right,
            #1890ff,
            #1890ff 2px,
            transparent 2px,
            transparent 4px
          );
          z-index: 1;
        }
      }

      .timeline-dot {
        position: absolute;
        top: 16px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background-color: #1890ff;
        border: 3px solid #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 2;
        flex-shrink: 0;
        transition: all 0.3s ease;


        &:hover {
          transform: scale(1.2);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }
      }

      .timeline-connector {
        position: absolute;
        top: 24px;
        width: 31px;
        height: 2px;
        background: repeating-linear-gradient(
          to right,
          #1890ff,
          #1890ff 2px,
          transparent 2px,
          transparent 4px
        );
        z-index: 1;
      }

      /* 当时间点有异常指标时，显示醒目的红色点 */
      .timeline-dot.warning {
        background-color: #ff4d4f;
        animation: pulse-dot 1.5s infinite;
      }

      .timeline-content {
        width: 100%;
        padding: 12px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        border: 1px solid #ebeef5;

        &:hover {
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
          transform: translateY(-2px);
        }

        .timeline-date {
          margin-bottom: 6px;

          .el-tag {
            font-weight: 500;
            background: linear-gradient(to right, #1890ff, #40a9ff);
            border: none;
            color: white;
            font-size: 12px;
            padding: 0 8px;
            height: 22px;
            line-height: 22px;
          }
        }

        .timeline-title {
          font-size: 15px;
          font-weight: bold;
          margin: 6px 0;
          color: #303133;
        }

        .timeline-description {
          color: #606266;
          font-size: 12px;
          margin-bottom: 10px;
          line-height: 1.4;
        }

        .timeline-card {
          background-color: #f8f9fa;
          border-radius: 6px;
          padding: 10px;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
          border: 1px solid #ebeef5;

          .card-content {
            .card-header {
              display: flex;
              justify-content: space-between;
              align-items: center;
              margin-bottom: 8px;

              .card-title {
                font-size: 12px;
                color: #606266;
                font-weight: 500;
              }

              .card-value {
                font-weight: bold;
                font-size: 14px;

                &.success {
                  color: #13ce66;
                }

                &.warning {
                  color: #ffba00;
                }

                &.danger {
                  color: #ff4949;
                }

                &.primary {
                  color: #1890ff;
                }
              }
            }

            .card-description {
              font-size: 11px;
              color: #909399;
              margin: 0;
              line-height: 1.4;
            }
          }
        }
      }
    }
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 77, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 79, 0);
  }
}

.health-insights {
  margin-top: 25px;
  margin-bottom: 25px;

  .insight-card {
    border: none;
    background-color: #f5f7fa;
    margin-bottom: 16px;
    border-radius: 6px;

    .insight-content {
      display: flex;

      .insight-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        font-size: 16px;

        &.success {
          background-color: rgba(19, 206, 102, 0.1);
          color: #13ce66;
        }

        &.primary {
          background-color: rgba(24, 144, 255, 0.1);
          color: #1890ff;
        }
      }

      .insight-text {
        h4 {
          margin: 0 0 8px 0;
          font-size: 14px;
        }

        p {
          margin: 0;
          font-size: 12px;
          color: #606266;
          line-height: 1.5;
        }
      }
    }
  }
}

.detail-score {
  background: linear-gradient(135deg, #1890ff, #40a9ff);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  color: white;
  box-shadow: 0 3px 10px rgba(24, 144, 255, 0.2);

  .score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;

    .score-title {
      font-size: 14px;
      font-weight: 500;
    }

    .score-value {
      font-size: 24px;
      font-weight: bold;
    }
  }

  .el-progress {
    margin-bottom: 6px;
  }

  .score-date {
    text-align: right;
    font-size: 12px;
    opacity: 0.9;
  }
}

.detail-section-title {
  font-size: 15px;
  font-weight: bold;
  margin: 16px 0 12px 0;
  color: #303133;
  display: flex;
  align-items: center;

  i {
    margin-right: 5px;
    color: #1890ff;
    font-size: 13px;
  }
}

.metrics-detail {
  margin-bottom: 12px;

  .metric-detail-item {
    margin-bottom: 10px;
  }

  .metric-detail-card {
    background-color: #fff;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #ebeef5;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;

    &:hover {
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
      transform: translateY(-1px);
    }

    .metric-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;

      .metric-name {
        font-size: 13px;
        font-weight: 600;
        color: #303133;
      }

      .metric-status {
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 6px;
        font-weight: 500;

        &.success {
          background-color: rgba(19, 206, 102, 0.1);
          color: #13ce66;
        }

        &.warning {
          background-color: rgba(255, 186, 0, 0.1);
          color: #ffba00;
        }

        &.danger {
          background-color: rgba(255, 73, 73, 0.1);
          color: #ff4949;
        }
      }
    }

    .metric-value-container {
      margin-bottom: 10px;

      .metric-value {
        font-size: 16px;
        font-weight: bold;
        color: #303133;
      }
    }

    .metric-change {
      font-size: 11px;
      display: flex;
      align-items: center;
      font-weight: 500;

      &.success {
        color: #13ce66;
      }

      &.danger {
        color: #ff4949;
      }

      &.neutral {
        color: #606266;
      }

      i {
        margin-right: 3px;
        font-size: 11px;
      }
    }
  }
}

.detail-notes {
  background-color: #f5f7fa;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  border-left: 2px solid #1890ff;

  p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #606266;
  }
}

.detail-recommendations {
  ul {
    padding-left: 16px;
    margin: 0;

    li {
      margin-bottom: 8px;
      line-height: 1.4;
      font-size: 12px;
      color: #606266;

      &:last-child {
        margin-bottom: 0;
      }

      i {
        color: #1890ff;
        margin-right: 5px;
        font-size: 11px;
      }
    }
  }
}

.dialog-footer {
  text-align: right;

  .el-button {
    padding: 6px 14px;
    font-size: 12px;
  }
}

/* 重新设计时间轴卡片样式以提高空间利用率和美观性 */
.timeline-card .card-content {
  padding: 0;
}

.card-details {
  display: flex;
  gap: 20px;
  padding: 15px;
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
}

.card-details-column {
  flex: 1;
}

.card-details .section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #263238;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-details .section-title i {
  font-size: 16px;
}

.card-details .section-title.warning-title {
  color: #ff9800;
}

.card-details .section-title.recommendations-title {
  color: #2196f3;
}

.metrics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.metric-tag {
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.metric-tag.warning {
  background: linear-gradient(to right, #fff3e0, #ffe0b2);
  color: #ef6c00;
  border: 1px solid #ffcc80;
}

.recommendations-list {
  padding-left: 18px;
  margin: 0;
}

.recommendations-list li {
  font-size: 13px;
  color: #455a64;
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: left;
}

.recommendations-list li:last-child {
  margin-bottom: 0;
}

.recommendations-list li::marker {
  color: #2196f3;
  font-weight: bold;
}

/* 修复时间轴卡片内容对齐问题 */
.timeline-item .timeline-content .timeline-card {
  text-align: left;
}

.timeline-item.right .timeline-content .timeline-card {
  text-align: left;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .overview-content {
    flex-direction: column;
    text-align: center;
  }

  .health-timeline {
    .timeline-container {
      padding: 16px 0 30px 25px;
      width: 100%;

      .timeline-line {
        left: 25px;
        transform: none;
      }

      .timeline-item {
        flex-direction: row !important;
        padding-left: 0;

        .timeline-dot {
          left: 25px;
          transform: none;
          position: absolute;
          top: 16px;
          width: 18px;
          height: 18px;
          border-radius: 50%;
          background-color: #1890ff;
          border: 3px solid #fff;
          box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
          z-index: 2;
          flex-shrink: 0;
          transition: all 0.3s ease;


        }

        .timeline-connector {
          display: none;
        }

        .timeline-content {
          width: calc(100% - 50px);
          padding: 0 12px 0 40px !important;
          text-align: left !important;

          .timeline-date {
            text-align: left !important;
          }
        }

        &.right {
          flex-direction: row !important;

          .timeline-content {
            padding: 0 12px 0 40px !important;
            text-align: left !important;
          }
        }
      }
    }
  }

  .health-indicators {
    grid-template-columns: 1fr !important;
  }

  .health-report-container {
    height: auto;
    overflow: visible;
    font-size: 12px;
  }

  .time-filter {
    .filter-buttons {
      .custom-date-range {
        width: 100%;
        margin-top: 10px;
        margin-left: 0;

        .el-date-editor {
          width: 100px;
        }
      }
    }
  }

  .overview-score .score-content {
    min-width: 140px;
    padding: 10px 15px;
  }

  .overview-score .score-content .score-number {
    font-size: 24px;
  }

  .score-value {
    font-size: 20px;
  }

  .card-details {
    flex-direction: column;
    gap: 15px;
  }

  .card-details-column {
    padding: 0;
  }

  .card-details .section-title {
    font-size: 13px;
    margin-bottom: 12px;
    gap: 6px;
  }

  .metrics-list {
    gap: 6px;
  }

  .metric-tag {
    padding: 4px 10px;
    font-size: 11px;
  }

  .recommendations-list {
    padding-left: 16px;
  }

  .recommendations-list li {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .header-section {
    padding: 15px;
  }

  .overview-score .score-content {
    min-width: 100%;
    padding: 12px 15px;
  }

  .overview-score .score-content .score-number {
    font-size: 28px;
  }

  .time-filter .filter-buttons {
    gap: 8px;
  }

  .time-filter .filter-buttons .el-button {
    padding: 6px 12px;
    font-size: 11px;
  }

  .time-filter .filter-buttons .custom-date-range {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }

  .time-filter .filter-buttons .custom-date-range .el-date-editor {
    width: 100%;
  }
}

.health-detail-dialog {
  .el-dialog {
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    max-height: 85vh;

    .el-dialog__header {
      background: linear-gradient(to right, #1890ff, #40a9ff);
      color: white;
      border-top-left-radius: 6px;
      border-top-right-radius: 6px;
      padding: 10px 12px;

      .el-dialog__title {
        color: white;
        font-weight: bold;
        font-size: 15px;
      }

      .el-dialog__headerbtn {
        top: 10px;

        .el-dialog__close {
          color: white;
          font-size: 16px;
        }
      }
    }

    .el-dialog__body {
      padding: 12px;
      max-height: calc(85vh - 80px);
      overflow-y: auto;
    }

    .el-dialog__footer {
      padding: 10px 12px;
      border-top: 1px solid #eee;
    }
  }
}

/* 由于模态框使用 append-to-body，需要将这部分样式作为全局样式 */
.metric-detail-dialog .dialog-content .metric-info {
  font-size: 14px;
  color: #606266;
  margin-bottom: 15px;
  line-height: 1.6;
  padding: 15px;
  background: linear-gradient(135deg, rgba(64, 158, 255, 0.08) 0%, rgba(64, 158, 255, 0.03) 100%);
  border-radius: 8px;
  border-left: 4px solid #409eff;
  box-shadow: 0 2px 6px rgba(64, 158, 255, 0.1);
}

.metric-detail-dialog .dialog-content .metric-info .metric-description {
  margin-bottom: 10px;
}

.metric-detail-dialog .dialog-content .metric-info .normal-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-detail-dialog .dialog-content .metric-info .normal-range .label {
  font-weight: 600;
  color: #409eff;
}

.metric-detail-dialog .dialog-content .metric-info .normal-range .value {
  font-weight: 500;
  color: #303133;
  background-color: rgba(64, 158, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.metric-detail-dialog .dialog-content .chart-container-large {
  height: 300px;
  margin-bottom: 15px;
  position: relative;
  background-color: #fafafa;
  border-radius: 6px;
  display: flex;
  justify-content: center;
}

.metric-detail-dialog .dialog-content .chart-container-large .large-chart {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
  position: relative;
  z-index: 1;
}

.metric-detail-dialog .health-advice-modal {
  background: linear-gradient(135deg, rgba(64, 158, 255, 0.1) 0%, rgba(64, 158, 255, 0.05) 100%);
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  border: 1px solid rgba(64, 158, 255, 0.2);
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.metric-detail-dialog .health-advice-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #409eff, #8cc5ff);
}

.metric-detail-dialog .health-advice-modal.health-advice-warning {
  background: linear-gradient(135deg, rgba(230, 162, 60, 0.15) 0%, rgba(230, 162, 60, 0.08) 100%);
  border: 1px solid rgba(230, 162, 60, 0.3);
  box-shadow: 0 4px 12px rgba(230, 162, 60, 0.15);
}

.metric-detail-dialog .health-advice-modal.health-advice-warning::before {
  background: linear-gradient(to bottom, #e6a23c, #f3d19e);
}

.metric-detail-dialog .health-advice-modal .advice-header-modal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.metric-detail-dialog .health-advice-modal .advice-header-modal .advice-icon-modal {
  color: #409eff;
  font-size: 20px;
  -webkit-animation: pulse 2s infinite;
  animation: pulse 2s infinite;
}

.metric-detail-dialog .health-advice-modal.health-advice-warning .advice-header-modal .advice-icon-modal {
  color: #e6a23c;
}

.metric-detail-dialog .health-advice-modal .advice-header-modal .advice-title-modal {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
  margin: 0;
}

.metric-detail-dialog .health-advice-modal .advice-content-wrapper .advice-content-modal {
  font-size: 14px;
  color: #606266;
  margin: 0 0 15px 0;
  line-height: 1.7;
  padding-left: 30px;
  position: relative;
}

.metric-detail-dialog .health-advice-modal .advice-content-wrapper .advice-content-modal::before {
  content: "❝";
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 24px;
  color: #409eff;
  opacity: 0.5;
}

.metric-detail-dialog .health-advice-modal.health-advice-warning .advice-content-wrapper .advice-content-modal {
  color: #c38f33;
  font-weight: 500;
}

.metric-detail-dialog .health-advice-modal .advice-content-wrapper .advice-highlight {
  background-color: rgba(230, 162, 60, 0.2);
  border-radius: 8px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #e6a23c;
}

.metric-detail-dialog .health-advice-modal .advice-content-wrapper .advice-highlight i {
  color: #e6a23c;
  font-size: 18px;
}

.metric-detail-dialog .health-advice-modal .advice-content-wrapper .advice-highlight span {
  font-weight: 600;
  color: #c38f33;
  font-size: 14px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(1);
    opacity: 1;
  }
  50% {
    -webkit-transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    -webkit-transform: scale(1);
    opacity: 1;
  }
}
